<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>后台管理系统</title>
    <link rel="stylesheet" href="/static/admin/layui/css/layui.css">
    <link rel="stylesheet" href="/static/admin/css/common.css">
    <style>



    </style>
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
   {include file="common/top"}
    {include file="common/left"}
</div>
<div class="main-container">
    <!-- 面包屑 -->
    <!-- lay-separator="-" -->
    <span class="layui-breadcrumb" lay-separator="-">
            <a href="/admin/index/index">首页</a>
            <a href="###">会员列表</a>
        </span>
    <!-- <div style="margin-top: 10px;">
        <button type="button" class="layui-btn">
            <a href="add"><i class="layui-icon">&#xe608;</i> 添加</a>
        </button>
    </div> -->
    <table class="layui-table" style="margin-top: 10px">
        <thead>
        <th>ID</th>
        <th>用户名</th>
        <th>邮箱</th>
        <th>操作</th>
        </thead>
        <tbody>
        {volist name="$userres" id="user"}
        <tr>
            <td>{$user.id}</td>
            <td>{$user.name}</td>
            <td>{$user.email}</td>
            <td><a href="del?id={$user.id}" class="layui-btn layui-bg-red" onclick="return confirm('你确定要删除这个会员吗')" ><i class="layui-icon layui-icon-delete"></i>删除</a></td>
        </tr>
        {/volist}
        </tbody>
    </table>
    <div style="width: 100%;text-align: center">{$userres->render()|raw}</div>
</div>
</body>
<script src="/static/admin/layui/layui.js"></script>
<script>
    layui.use(['element'],() =>{
    });
    
</script>
<!-- <script src="../layui/layui.all.js"></script>
<script>
    window.onload = () => {
        layui.layer.msg('Hello Layui!');
    }
</script> -->
</html>